﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Engine;
using Engine.Attributes;

namespace Engine.Components
{
	public class IntegerAdder: Component
	{
        public InPort<int> Op1 = new InPort<int>();
        public InPort<int> Op2 = new InPort<int>();
        public OutPort<int> Result = new OutPort<int>();

        public IntegerAdder()
        {

        }

        public override void Run()
        {
            Result.Value = Op1.Value + Op2.Value;
        }
	}
}
